package com.dolo.game.hero.shell.controller
{
	import com.dolo.game.hero.shell.model.GameServerProxy;
	import com.dolo.game.hero.shell.view.ApplicationUIMediator;
	
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	
	public class StartupCommand extends SimpleCommand
	{
		public function StartupCommand()
		{
			super();
		}
		override public function execute( notification:INotification ):void
		{
			var app:MainApplication = notification.getBody() as MainApplication;
			
			
			//Controller
			
			//Model
			super.facade.registerProxy( new GameServerProxy() );
			
			
			//View
			super.facade.registerMediator( new ApplicationUIMediator( app ) );
			
		}
	}
}